package com.example.system.domain;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * (SysProcess)表实体类
 */
@Data
@TableName("sys_process")
@Api(value = "审核实体", tags = {"审核实体"})
public class Process {
    @TableId
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("项目id")
    private Integer projectId;
    @ApiModelProperty("审核人员id")
    private Integer userId;
    @ApiModelProperty("审核结果")
    private String process;
    @ApiModelProperty("审核意见")
    private String remark;
    @ApiModelProperty("是否审核过")
    private String isProcess;

    public static Process newProcess(Integer id, Integer projectId, Integer userId) {
        Process p = new Process();
        p.setId(id);
        p.setProjectId(projectId);
        p.setUserId(userId);
        p.setProcess("未审核");
        p.setRemark("未审核");
        p.setIsProcess("NO");
        return p;
    }
}

